package com.bw.service;

import com.bw.dao.AddreDao;
import com.bw.domain.Addre;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AddreServiceImpl implements AddreService {

    @Autowired
    AddreDao dao;
    //查询
    @Override
    public List<Addre> getList1(String addr, String name) {
        return dao.getList1(addr,name);
    }
    //添加
    @Override
    public int tjAdd(String uname, String cname, String pwd, String name, String phone, String brithday, String sex, String ctime) {
        return dao.tjAdd(uname, cname, pwd, name, phone, brithday, sex, ctime);
    }
    //删除
    @Override
    public int scDele(Integer[] ids) {
        return dao.scDele(ids);
    }
}
